package cn.vivi.design.responsibility;

public class Client {

    public static void main(String[] args) {
        LeaveRequest leave = new LeaveRequest("小明", 7, "身体不适");
        GroupLeader leader = new GroupLeader();
        Manager manager = new Manager();
        GeneralManager general = new GeneralManager();

        leader.setNextHandler(manager);
        manager.setNextHandler(general);

        leader.submit(leave);
    }

}
